/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.MdsProject.DomainModels
{
    [Entity(TableCnName = "数据采集设备配置",TableName = "Mds_RealDeviceConfig",DBServer = "ServiceDbContext")]
    public partial class Mds_RealDeviceConfig:ServiceEntity
    {
        /// <summary>
       ///ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long RealDeviceConfigId { get; set; }

       /// <summary>
       ///数采设备ID
       /// </summary>
       [Display(Name ="数采设备ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? RealDeviceId { get; set; }

       /// <summary>
       ///数据属性
       /// </summary>
       [Display(Name ="数据属性")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string DataProps { get; set; }

       /// <summary>
       ///数据类型
       /// </summary>
       [Display(Name ="数据类型")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? DataType { get; set; }

       /// <summary>
       ///读属性
       /// </summary>
       [Display(Name ="读属性")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Readable { get; set; }

       /// <summary>
       ///写属性
       /// </summary>
       [Display(Name ="写属性")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Writable { get; set; }

       /// <summary>
       ///数据块-PLC
       /// </summary>
       [Display(Name ="数据块-PLC")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string DbBlock { get; set; }

       /// <summary>
       ///读取偏移量-字节
       /// </summary>
       [Display(Name ="读取偏移量-字节")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Offset { get; set; }

       /// <summary>
       ///读取长度-字节
       /// </summary>
       [Display(Name ="读取长度-字节")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Length { get; set; }

       /// <summary>
       ///写地址
       /// </summary>
       [Display(Name ="写地址")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string WriteAddress { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int IsValid { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string Remarks { get; set; }

       
    }
}